extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[稀有]巫毒人偶"
	info = "造成技能伤害时，强驱散佩戴者当前炮击瞄准目标的所有增益效果\n[color=#DC143C]同时装备两件时可升级[/color]"
	price = 300
	att.mgiAtk = 100
	att.cd = 0.3
	
func _connect():
	._connect()
	masCha.connect("onAtkChara",self,"onAtkChara")

func onAtkChara(atkInfo):
	if masCha.aiCha == null or atkInfo.atkType != sys.AtkType.SKILL or atkInfo.hitCha.team == atkInfo.atkCha.team:return
	for j in masCha.aiCha.buffs:
		if not j.isNegetive && j.get("type") != config.EQUITYPE_EQUI:
			j.isDel = true


func upgrade():
	name = "[color=#FFFF00][史诗]巫毒人偶"
	info = "造成技能伤害时，强驱散佩戴者当前炮击瞄准目标的所有增益效果"
	att.mgiAtk = 200
	att.cd = 0.6